package com.ciri.ssm.service.impl;

import com.ciri.ssm.service.practice.Subject;

/**
 * @author ciri
 * @version 1.0
 * @description :
 * @create 2024/5/14 16:04
 **/
public class ProxySubject implements Subject {
    private RealSubjectimpl realSubjectimpl;
    public ProxySubject (RealSubjectimpl realSubjectimpl){
        this.realSubjectimpl = realSubjectimpl;
    }


    @Override
    public void request() {
        System.out.println("before request");
        realSubjectimpl.request();
        System.out.println("SSS");


    }
}
